﻿using System;

namespace CML.Intercamber.Business.Model
{
    public class ModerationDetail
    {
        public long IdModeration { get; set; }
        public long IdUserCreated { get; set; }
        public string LblUserCreated { get; set; }
        public string EstUserCreated { get; set; }
        public string MailUserCreated { get; set; }
        public long IdUserTarget { get; set; }
        public string LblUserTarget { get; set; }
        public string EstUserTarget { get; set; }
        public string MailUserTarget { get; set; }
        public string Message { get; set; }
        public DateTime DateCreated { get; set; }
        public DateTime? DateResolved { get; set; }
        public bool Blocked { get; set; }
        public string DateCreatedStr
        {
            get
            {
                return DateCreated.ToString("dd/MM/yyyy HH:mm:ss");
            }
        }
        public string DateResolvedStr
        {
            get
            {
                if (DateResolved == null)
                    return "";
                return DateResolved.Value.ToString("dd/MM/yyyy HH:mm:ss");
            }
        }
        public string ResolveMessage { get; set; }
        public string Context { get; set; }
        public bool EnAttente { get; set; }
    }
}
